package com.ofood.springcloud.service.impl;

import com.ofood.springcloud.domain.Food;
import com.ofood.springcloud.domain.Result;
import com.ofood.springcloud.service.IFoodFeignService;
import org.springframework.stereotype.Component;

@Component
public class FoodFeignHystrixService implements IFoodFeignService {
    @Override
    public Result create(Food food) {
        return new Result(200,"服务挂了");
    }

    @Override
    public Result getFoodById(long foodId) {
        return new Result(200,"服务挂了");
    }

    @Override
    public String getFoodTimeoutHystrix() {
        return "服务挂了";
    }

    @Override
    public String getFoodErrorHystrix() {
        return "服务挂了";
    }
}
